package com.yds.xutils_facrotypattern.https;

import org.xutils.http.RequestParams;

/**
 * @author YDS
 * @date 2021/5/25
 * @discribe https请求方法
 */
@SuppressWarnings("all")
public interface IHttpsMethodListener {

    /**
     * @auther 于德水
     * created at 2021/6/10 9:50
     * 方法描述：GET请求
     */
    void httpsGet(RequestParams params,
                  HttpRequestCallBack callBack);

    /**
     * @auther 于德水
     * created at 2021/6/10 9:50
     * 方法描述：POST请求
     */
    void httpsPost(RequestParams params,
                   HttpRequestCallBack callBack);

    /**
     * @auther 于德水
     * created at 2021/6/10 9:50
     * 方法描述：POST JSON请求
     */
    void httpsPostAsJson(RequestParams params,
                         Object obj,
                         HttpRequestCallBack callBack);

    /**
     * @auther 于德水
     * created at 2021/6/10 9:51
     * 方法描述：PATCH请求
     */
    default void httpsPatch(RequestParams params,
                            HttpRequestCallBack callBack) {
    }

    /**
     * @auther 于德水
     * created at 2021/6/10 9:52
     * 方法描述：DELETE请求
     */
    default void httpsDelete(RequestParams params,
                             HttpRequestCallBack callBack) {
    }

    /**
     * @auther 于德水
     * created at 2021/6/26 10:13
     * 方法描述：取消网络请求
     */
    void httpsRequestCancel();

}
